import React from 'react'
import {Tag} from 'antd'

const TagList = ({tags}) => {
  const data = tags.map(item => <Tag key={item.id}>{item.name}</Tag>)

  return <div>{data}</div>
}

export default TagList
